package cn.healthlink.proxy.demo06;
import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;

/**
 * @author dengzhiyuan
 * @version 1.0
 * @time 2021/2/24 18:09
 */
public class MethodInterceptor02 implements MethodInterceptor {
	@Nullable
	@Override
	public Object invoke(@Nonnull MethodInvocation invocation) throws Throwable {
		System.out.println("MethodInterceptor02 begin");
		Object ret = invocation.proceed();
		System.out.println("MethodInterceptor02 end");
		return ret;
	}
}
